package com.pets.web.service;

import com.pets.web.dto.SoldDto;
import com.pets.web.entity.PetsComment;
import com.pets.web.entity.PetsGoods;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author zhurenwang
 * @since 2024-05-25
 */
public interface IPetsGoodsService extends IService<PetsGoods> {

    int add(PetsGoods petsGoods);

    int deleteById(Integer id);

    List<PetsGoods> list(PetsGoods petsGoods);

    boolean offline(Integer id);

    boolean online(Integer id);

    PetsGoods getGoodsById(Integer goodsId);

    SoldDto getSoldInfo(Integer goodsId);

}
